package com.peanut.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mvc.annotation.NotEmpty;
import com.mvc.annotation.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Channel {
	private Integer id;       // 渠道id
	
	@NotNull
	private Integer typeId;  // 渠道分类id
	
	@NotEmpty
	private String name;      //  渠道名
	
	@NotEmpty
	private String code;      // ?
	private String platformType;    // 平台类型
	private Integer areaId;
	private String desc;            // 描述
	private String downloadUrl;      // 下载地址
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime releaseTime;   // 发布时间
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createTime;     // 创建时间
}
